<div class="primary">
    <div class="sidebar_wrap">
       <? 
         include 'view/common/vic_sidebar.php';
       ?>
    </div>
    <div class="news_line_vertical">&nbsp;</div>
    <div class="content_product">
        <h1><?=$pro_cat_id_inf['cat_name']?></h1>
        <div class="content_product_inner">
        <?         
            $templateProduct->page_size = 9;
            $templateProduct->page = $current_page;
            $pro_cat = $templateProduct->pro_cat($pro_cat_id);
            
            $total = $templateProduct->pro_cat_total($pro_cat_id);
            foreach($pro_cat as $row){
        ?>
            <div class="product_cat_item">
                <a href="<?=generate_product_detail_url($row,$pro_cat_id_inf['cat_name'])?>">
                    <img src="<?=($row['pro_image']) ? '/pictures/products/small_'.$row['pro_image'] : '/pictures/no.jpg'?>" alt="<?=$row['pro_name']?>" />
                    <div class="product_cat_item_name">
                        <h2><?=$row['pro_name']?></h2>
                    </div>
                </a>
            </div>
        <?}?>
        </div>
        <div class="pro_pagebreak">
            <?=generatePageBar('',$current_page,$templateProduct->page_size,$total,'','main_page_btn','page_selected','<','>','Đầu','Cuối',1,1)?>
        </div>    
    </div><!-- End content -->
</div><!-- End primary -->